package springTwo.service;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserBySpringTwo {
	public static void main(String[] args) {
		ApplicationContext ac = new ClassPathXmlApplicationContext("springTwo/applicationContext.xml");
		// 获取容器中的对象
		UserBySpring userDao = ac.getBean("userThree", UserBySpring.class);
		userDao.print();
	}
}
